package com.ouc.yyi.system.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.ouc.yyi.config.model.Menu;
import com.ouc.yyi.system.dao.MenuMapper;
import com.ouc.yyi.system.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class MenuServiceImpl extends ServiceImpl<MenuMapper,Menu> implements MenuService {
    @Autowired
    private MenuMapper menuMapper;

    @Override
    public List<Menu> getMenuByRoleId(Integer roleId) {
        return menuMapper.getMenuByRoleId(roleId);
    }
}
